package com.etms.mapper;

import com.etms.pojo.Attend;
import com.etms.vo.AttendParmas;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AttendMapper {
    int insert(Attend attend);

    List<Attend> findList();

    boolean updateSaraly(AttendParmas attendParmas);

    Attend findByDayAndUid(@Param("day") int i,@Param("uid") Integer id);

    void updateWorks(@Param("preworks") Integer workNums, @Param("postworks") int works, @Param("id") Integer id);

    List<Attend> findByDayAndWorks(@Param("day") int day);
}
